import React from 'react';
import styles from './index.less';
import TitleUser from '../titleUser';


function Header({
    style,
    title = '',
    ...userProps,
}) {
    return (
        <div style={style} className={styles.normal}>
            <h1>{title}</h1>
            <div className={styles.userInfo}>
                <TitleUser
                    {...userProps}
                />
            </div>
        </div>
    );
}

export default Header;
